﻿<%@ Page Language="C#" MasterPageFile="~/Template/List.master" AutoEventWireup="true"
    CodeFile="MonthlyList.aspx.cs" Inherits="Page_MonthlyList" Title="无标题页" %>

<%@ Register Src="~/Control/ListHeader.ascx" TagName="ListHeader" TagPrefix="wsc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <script src="../Js/calendar.js"></script>
    <script>
        function openNewFiles() {
            var width = 560;
            var height = 720;
            window.open("EditMonthly.aspx?NoCache=" + Math.random(), "newwindow", 'width=' + width + ',height=' + height + ',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,left=' + (screen.width - width) / 2 + ',top=' + (screen.height - height) / 2);
        }

        function getID(id) {
            document.getElementById('<%=tbSelectedID.ClientID %>').value = id;
        }   
        
    </script>
    <link href="../Style/Css/calendar.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="TitlePlaceHolder" runat="Server">
    科室周报管理
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ListToolBarPlaceHolder" runat="Server">
    <div style="display: none">
        <asp:Button ID="btnRefresh" runat="server" OnClick="btnRefresh_Click" />
        <asp:TextBox ID="tbSelectedID" runat="server"></asp:TextBox>
    </div>
    <table cellspacing="2" cellpadding="0" border="0" width="100%">
        <tr>
            <td class="ToolMenu" style="width: 60px">
                <div class="Normal" oldclass="Normal" onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)"
                    onclick="openNewFiles();">
                    <span>
                        <img src="../Images/Icon/Object/Dataset-add.gif" alt="" /></span><span>添加</span>
                </div>
            </td>
            <td class="Fg">
                <img src="../Images/FgLine.gif" alt="" />
            </td>
            <td class="ToolMenu" width="60px">
                <div class="Normal" oldclass="Normal" onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)">
                    <asp:LinkButton runat="server" ID="lbtnDelete" OnClick="lbtnDelete_Click" OnClientClick="return window.confirm('确认删除?');">
                        <span><img src="../Images/Icon/object/Dataset-delete.gif" /></span><span>删除</span>
                    </asp:LinkButton>
                </div>
            </td>
            <td class="Fg" style="display: none">
                <img src="../Images/FgLine.gif" alt="" />
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="AdvancedSearchPlaceHolder" runat="Server">
    <table cellspacing="4" cellpadding="0" border="0" width="100%">
        <tr>
            <td align="right">
                &nbsp;发布日期：
            </td>
            <td align="right">
                <asp:TextBox ID="tbDateStart" runat="server" onfocus="calendar();" class="Textbox01"></asp:TextBox>
            </td>
            <td align="right">
                &nbsp;---&nbsp;
            </td>
            <td align="right">
                <asp:TextBox ID="tbDateEnd" runat="server" onfocus="calendar();" class="Textbox01"></asp:TextBox>
            </td>
        </tr>
      
        <tr>
            <td align="right">
                &nbsp;文件名称：
            </td>
            <td align="right">
                <asp:TextBox ID="tbFileName" runat="server" class="Textbox01"></asp:TextBox>
            </td>
            <td colspan="2" align="right">
                <asp:Button ID="btnAdvancedSearch" runat="server" CssClass="Button01" Text="开始查询"
                    OnClick="btnAdvancedSearch_Click" />
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="ListHeaderPlaceHolder" runat="Server">
    <table cellspacing="0" cellpadding="0" border="0" class="PageGridHeader" width="100%">
        <!--<wsc:ListHeader ID="Select" runat="server" Type="CheckBox" Width="30" Align="center" />-->
        <wsc:ListHeader ID="lhSymbol" runat="server" Title="&nbsp;文号" OrderColumn="Symbol"
            Align="center" />
        <wsc:ListHeader ID="lhFileName" runat="server" Title="&nbsp;文件名称" Width="140" OrderColumn="FileName"
            Align="center" />
        <wsc:ListHeader ID="lhPublishTime" runat="server" Title="&nbsp;发布时间" Width="140"
            OrderColumn="PublishTime" Align="center" FirstOrderDirection="DESC" />
    </table>
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="ListContentPlaceHolder" runat="Server">
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="MainInfolist">
        <asp:Repeater ID="rptFiles" runat="server">
            <ItemTemplate>
                <tr id="TableRow_<%# Container.ItemIndex%>" style="cursor: pointer" class="Normal" oldclass="Normal"
                    onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)" onclick="getID(this.id);ClickChangeClass(this);OpenDetail('MonthlyDetail.aspx?ID=<%# DataBinder.Eval(Container.DataItem, "ID")%>&Manage=false&Nocache=' + Math.random());">
                    <td width="30" align="center">
                        <asp:CheckBox ID="cbFiles" runat="server" />
                    </td>
                    <td align="left">
                        &nbsp;<%#Eval("Symbol")%>
                    </td>
                    <td width="140" align="left" title="<%#Eval("FileName")%>">
                        &nbsp;<%#Cut(Eval("FileName"),5)%>
                    </td>
                    <td width="140" align="left">
                        <a title="<%#Eval("PublishTime","{0:yyyy-MM-dd}")%>">
                            <%#Eval("PublishTime","{0:yyyy-MM-dd}")%></a>
                    </td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
    </table>
</asp:Content>
